package main

import (
	"context"
	"demo/api"
	"fmt"
	"git.huoys.com/middle-end/kratos/pkg/net/rpc/warden"
	xtime "git.huoys.com/middle-end/kratos/pkg/time"
	"github.com/gogo/protobuf/types"
	"time"
)

func main() {
	cfg := &warden.ClientConfig{
		Dial: xtime.Duration(time.Second * 3),
	}
	cli, err := api.NewClient(cfg)
	fmt.Println(err)
	hello, err := cli.Ping(context.Background(),&types.Empty{})
	fmt.Println(hello)
}
